package com.xiaoxu.content.feignclient;

import com.xiaoxu.search.model.po.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xiaoxu
 * @version 1.0
 * @description 搜素服务远程调用接口
 * @date 2023/1/31 18:23
 */
@FeignClient(value = "search-api",fallbackFactory = SearchServiceClientFallBackFactory.class)
@RequestMapping("/search")
public interface SearchServiceClient {

    @PostMapping("/index/course")
    Boolean add(@RequestBody CourseIndex courseIndex);

}
